package com.tanhua.dubbo.api;

import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongo.Comment;

import java.util.List;

public interface CommentApi {

    List<Comment> findComments(String movementId, CommentType comment, Integer page, Integer pagesize);

    Integer save(Comment comment);

    Boolean hasComment(String movementId, Long userId, CommentType like);

    Integer delete(Comment comment);

    int count(String messageId, CommentType comment);


    List<Comment> findComments1(Long userId, CommentType comment, Integer page, Integer pagesize);

    List<Comment> findCommentsList(Integer page, Integer pagesize, Long publishUserId, CommentType commentType);

    Integer saveVideoComment(Comment videoComment);


    Integer update(String commentId);

  Comment findById(String commentId);

    Integer saveVideo(Comment comment);

    Integer deleteVideo(Comment comment);

    Integer disLike(String commentId);
}
